import java.io.*;
public class Tareas
{   private final int max=15;
	private int [] v;
	public BufferedReader leer=new BufferedReader(new InputStreamReader(System.in));
	
	Tareas()
	{ v=new int[max];
	}
	
	public void datos() throws NumberFormatException, IOException
	{ int i;
	  for(i=0;i<v.length;i++)
	  { System.out.println("Introduzca el elemento de la posicion "+(i+1));
	    v[i]=Integer.parseInt(leer.readLine());
	  }
	}
	
	public int tarea1()
	{ int i;
	  int x=0;
	  for(i=0;i<v.length;i++)
		  x+=v[i];
	  return x;
	}
	
	public int tarea2()
	{
		int i;
		int x=0;
		for(i=0;i<v.length;i++)
			if((i+1)%2==0)
			   x+=v[i];
		return x;
	}
	public int tarea3()
	{ int i;
	  int x=0;
	  for(i=0;i<v.length;i++)
		if((i+1)%2!=0)
		   x+=v[i];
	  return x;
	}
	public boolean tarea4(int x)
	{ int i;
	  boolean a=false;
	  for(i=0;i<v.length && a==false;i++)
		  if (v[i]==x)
			  a=true;
	  return a;
	}
}
